package com.fleapx.spring.hook.springhooktest.aware;

import org.springframework.context.annotation.ImportAware;
import org.springframework.core.type.AnnotationMetadata;

/**
 * 配合@Import导入实现ImportAware接口的类，可以获取到@Import注解的类的配置信息。
 */
public class ImportAwareTest implements ImportAware {
    @Override
    public void setImportMetadata(AnnotationMetadata annotationMetadata) {
        System.out.println("进入了ImportAware");
        System.out.println(annotationMetadata);
    }
}
